200 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
with Gantt1 do begin FormatAnchor[True] := '<b><u><fgcolor=FF0000> </fgcolor></u></b>'; Columns.Add('Column'); with Items do begin CellCaptionFormat[OleVariant(AddItem('Just an <a1>anchor</a> element ...')),OleVariant(0)] := EXGANTTLib_TLB.exHTML; end; with Items do begin CellCaptionFormat[OleVariant(AddItem('Just another <a2>anchor</a> element ...')),OleVariant(0)] := EXGANTTLib_TLB.exHTML; end; end |
199 |
Can I change the font for the tooltip
|
198 |
Can I change the font for the tooltip
with Gantt1 do begin ToolTipDelay := 1; with ToolTipFont do begin Name := 'Tahoma'; Size := 14; end; ToolTipWidth := 364; (IUnknown(Columns.Add('tootip')) as EXGANTTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
197 |
Can I change the order of the buttons in the scroll bar
with Gantt1 do begin ScrollOrderParts[EXGANTTLib_TLB.exHScroll] := 't,l,r'; ScrollOrderParts[EXGANTTLib_TLB.exVScroll] := 't,l,r'; ScrollBars := EXGANTTLib_TLB.exDisableBoth; end |
196 |
The thumb size seems to be very small. Can I make it bigger
with Gantt1 do begin ColumnAutoResize := False; (IUnknown(Columns.Add('C1')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXGANTTLib_TLB.Column).Width := 256; ScrollThumbSize[EXGANTTLib_TLB.exHScroll] := 64; end |
195 |
How can I display my text on the scroll bar, using a different font
with Gantt1 do begin ScrollPartCaption[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exThumbPart] := 'This is <s><font Tahoma;12> just </font></s> text'; ColumnAutoResize := False; ScrollHeight := 20; (IUnknown(Columns.Add('C1')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXGANTTLib_TLB.Column).Width := 256; end |
194 |
How can I display my text on the scroll bar, using a different font
with Gantt1 do begin ScrollPartCaption[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exThumbPart] := 'This is just a text'; ScrollFont[EXGANTTLib_TLB.exHScroll].Size := 12; ColumnAutoResize := False; ScrollHeight := 20; (IUnknown(Columns.Add('C1')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXGANTTLib_TLB.Column).Width := 256; end |
193 |
How can I display my text on the scroll bar
with Gantt1 do begin ScrollPartCaption[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exThumbPart] := 'this is just a text'; ColumnAutoResize := False; (IUnknown(Columns.Add('C1')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXGANTTLib_TLB.Column).Width := 256; end |
192 |
How do I enlarge or change the size of the control's scrollbars
with Gantt1 do begin ScrollHeight := 18; ScrollWidth := 18; ScrollButtonWidth := 18; ScrollButtonHeight := 18; ScrollBars := EXGANTTLib_TLB.exDisableBoth; end |
191 |
How do I assign a tooltip to a scrollbar
with Gantt1 do begin ScrollToolTip[EXGANTTLib_TLB.exHScroll] := 'This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar'; ColumnAutoResize := False; (IUnknown(Columns.Add('C1')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C2')) as EXGANTTLib_TLB.Column).Width := 256; (IUnknown(Columns.Add('C3')) as EXGANTTLib_TLB.Column).Width := 256; end |
190 |
How do I assign an icon to the button in the scrollbar
with Gantt1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); ScrollPartVisible[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exLeftB1Part] := True; ScrollPartCaption[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exLeftB1Part] := '<img>1</img>'; ScrollHeight := 18; ScrollButtonWidth := 18; ScrollBars := EXGANTTLib_TLB.exDisableNoHorizontal; end |
189 |
I need to add a button in the scroll bar. Is this possible
with Gantt1 do begin ScrollPartVisible[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exLeftB1Part] := True; ScrollPartCaption[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exLeftB1Part] := '1'; ScrollBars := EXGANTTLib_TLB.exDisableNoHorizontal; end |
188 |
Can I display an additional buttons in the scroll bar
with Gantt1 do begin ScrollPartVisible[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exLeftB1Part] := True; ScrollPartVisible[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exLeftB2Part] := True; ScrollPartVisible[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exRightB6Part] := True; ScrollPartVisible[EXGANTTLib_TLB.exHScroll,EXGANTTLib_TLB.exRightB5Part] := True; ScrollBars := EXGANTTLib_TLB.exDisableNoHorizontal; end |
187 |
Can I display the picture aligned to the right, while the text aligned to the left
with Gantt1 do begin DefaultItemHeight := 48; Columns.Add('C1'); with Items do begin s := SplitCell[OleVariant(AddItem('Text')),OleVariant(0)]; CellPicture[Null,OleVariant(s)] := Gantt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)'); CellHAlignment[Null,OleVariant(s)] := EXGANTTLib_TLB.RightAlignment; end; end |
186 |
How can I display a custom size picture to a cell or item
with Gantt1 do begin DefaultItemHeight := 48; Columns.Add('C1'); with Items do begin CellPicture[OleVariant(AddItem('Text')),OleVariant(0)] := Gantt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)'); end; end |
185 |
How can I display a multiple pictures to a cell or item
with Gantt1 do begin DefaultItemHeight := 48; HTMLPicture['pic1'] := 'c:\exontrol\images\zipdisk.gif'; HTMLPicture['pic2'] := 'c:\exontrol\images\auction.gif'; Columns.Add('C1'); with Items do begin CellCaptionFormat[OleVariant(AddItem('<img>pic1</img> Text <img>pic2</img> another text ...')),OleVariant(0)] := EXGANTTLib_TLB.exHTML; end; end |
184 |
How do I change the column's foreground color for numbers between an interval - Range
with Gantt1 do begin with ConditionalFormats.Add('%0 >= 2 and %0 <= 10',Null) do begin Bold := True; ForeColor := $ff; ApplyTo := EXGANTTLib_TLB.FormatApplyToEnum($1); end; Columns.Add('N1'); Columns.Add('N2'); with Items do begin CellCaption[OleVariant(AddItem(OleVariant(1))),OleVariant(1)] := OleVariant(2); end; with Items do begin CellCaption[OleVariant(AddItem(OleVariant(3))),OleVariant(1)] := OleVariant(3); end; with Items do begin CellCaption[OleVariant(AddItem(OleVariant(10))),OleVariant(1)] := OleVariant(11); end; with Items do begin CellCaption[OleVariant(AddItem(OleVariant(13))),OleVariant(1)] := OleVariant(31); end; SearchColumnIndex := 1; end |
183 |
How do I change the item's foreground color for numbers between an interval - Range
with Gantt1 do begin ConditionalFormats.Add('%0 >= 2 and %0 <= 10',Null).ForeColor := $ff; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
182 |
How do I change the item's background color for numbers less than a value
with Gantt1 do begin ConditionalFormats.Add('%0 < 10',Null).BackColor := $ff; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
181 |
How do I underline the numbers greater than a value
with Gantt1 do begin ConditionalFormats.Add('%0 >= 10',Null).Underline := True; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
180 |
How do I highlight in italic the numbers greater than a value
with Gantt1 do begin ConditionalFormats.Add('%0 >= 10',Null).StrikeOut := True; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
179 |
How do I highlight in italic the numbers greater than a value
with Gantt1 do begin ConditionalFormats.Add('%0 >= 10',Null).Italic := True; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
178 |
How do I highlight in bold the numbers greater than a value
with Gantt1 do begin ConditionalFormats.Add('%0 >= 10',Null).Bold := True; Columns.Add('Numbers'); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(10)); Items.AddItem(OleVariant(20)); end |
177 |
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); LinesAtRoot := EXGANTTLib_TLB.exGroupLinesAtRoot; HasButtons := EXGANTTLib_TLB.exCustom; HasButtonsCustom[False] := 16777216; HasButtonsCustom[True] := 33554432; Columns.Add('Column'); with Items do begin h := AddItem('Root 1'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); ExpandItem[h] := True; h := AddItem('Root 2'); InsertItem(h,Null,'Child'); end; end |
176 |
Can I use your EBN files to change the visual appearance for radio buttons
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); RadioImage[False] := 16777216; RadioImage[True] := 33554432; (IUnknown(Columns.Add('Radio')) as EXGANTTLib_TLB.Column).Def[EXGANTTLib_TLB.exCellHasRadioButton] := OleVariant(True); with Items do begin AddItem('Radio 1'); CellState[OleVariant(AddItem('Radio 2')),OleVariant(0)] := 1; AddItem('Radio 3'); end; end |
175 |
Can I use your EBN files to change the visual appearance for checkbox cells
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); CheckImage[EXGANTTLib_TLB.Unchecked] := 16777216; CheckImage[EXGANTTLib_TLB.Checked] := 33554432; (IUnknown(Columns.Add('Check')) as EXGANTTLib_TLB.Column).Def[EXGANTTLib_TLB.exCellHasCheckBox] := OleVariant(True); with Items do begin AddItem('Check 1'); CellState[OleVariant(AddItem('Check 2')),OleVariant(0)] := 1; end; end |
174 |
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn'); Background[EXGANTTLib_TLB.exHSThumb] := $1000000; Background[EXGANTTLib_TLB.exHSThumbP] := $2000000; Background[EXGANTTLib_TLB.exHSThumbH] := $3000000; Background[EXGANTTLib_TLB.exVSThumb] := $1000000; Background[EXGANTTLib_TLB.exVSThumbP] := $2000000; Background[EXGANTTLib_TLB.exVSThumbH] := $3000000; ColumnAutoResize := False; ScrollBySingleLine := True; (IUnknown(Columns.Add('S')) as EXGANTTLib_TLB.Column).Width := 483; with Items do begin ItemHeight[AddItem('Item 1')] := 248; end; Items.AddItem('Item 2'); end |
173 |
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn'); Background[EXGANTTLib_TLB.exHSThumb] := $1000000; Background[EXGANTTLib_TLB.exHSThumbP] := $2000000; Background[EXGANTTLib_TLB.exHSThumbH] := $3000000; ColumnAutoResize := False; (IUnknown(Columns.Add('S')) as EXGANTTLib_TLB.Column).Width := 483; end |
172 |
I've seen that you can change the visual appearance for the scroll bar. How can I do that
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn'); Background[EXGANTTLib_TLB.exSBtn] := $1000000; Background[EXGANTTLib_TLB.exSBtnP] := $2000000; Background[EXGANTTLib_TLB.exSBtnH] := $3000000; Background[EXGANTTLib_TLB.exHSBack] := $f0f0f0; Background[EXGANTTLib_TLB.exVSBack] := $f0f0f0; Background[EXGANTTLib_TLB.exScrollSizeGrip] := $f0f0f0; (IUnknown(Columns.Add('S')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('E1')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E2')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E3')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E4')) as EXGANTTLib_TLB.Column).Width := 32; ColumnAutoResize := False; ScrollBars := EXGANTTLib_TLB.exDisableBoth; end |
171 |
Is there any option to highligth the column from the cursor - point
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Background[EXGANTTLib_TLB.exCursorHoverColumn] := $1000000; (IUnknown(Columns.Add('S')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('E1')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E2')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E3')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E4')) as EXGANTTLib_TLB.Column).Width := 32; end |
170 |
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Background[EXGANTTLib_TLB.exSelBackColorFilter] := $1000000; Background[EXGANTTLib_TLB.exSelForeColorFilter] := $1414ff; (IUnknown(Columns.Add('Filter')) as EXGANTTLib_TLB.Column).DisplayFilterButton := True; end |
169 |
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); Background[EXGANTTLib_TLB.exDateHeader] := $1000000; Background[EXGANTTLib_TLB.exDateTodayUp] := $1000000; Background[EXGANTTLib_TLB.exDateTodayDown] := $2000000; Background[EXGANTTLib_TLB.exDateScrollThumb] := $1000000; Background[EXGANTTLib_TLB.exDateScrollRange] := $e6e6e6; Background[EXGANTTLib_TLB.exDateSeparatorBar] := $e6e6e6; Background[EXGANTTLib_TLB.exDateSelect] := $1000000; with (IUnknown(Columns.Add('Date')) as EXGANTTLib_TLB.Column) do begin FilterType := EXGANTTLib_TLB.exDate; DisplayFilterButton := True; DisplayFilterDate := True; end; end |
168 |
How do I change the visual aspect of the close button in the filter bar, using EBN
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Background[EXGANTTLib_TLB.exFooterFilterBarButton] := $1000000; (IUnknown(Columns.Add('Filter')) as EXGANTTLib_TLB.Column).FilterType := EXGANTTLib_TLB.exBlanks; ApplyFilter(); end |
167 |
How do I change the visual aspect of buttons in the cell, using EBN
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); Background[EXGANTTLib_TLB.exCellButtonUp] := $1000000; Background[EXGANTTLib_TLB.exCellButtonDown] := $2000000; SelForeColor := RGB(0,0,0); ShowFocusRect := False; (IUnknown(Columns.Add('Column 1')) as EXGANTTLib_TLB.Column).Def[EXGANTTLib_TLB.exCellHasButton] := OleVariant(True); Items.AddItem('Button 1'); Items.AddItem('Button 2'); Columns.Add('Column 2'); end |
166 |
How do I change the visual aspect of the drop down filter button, using EBN
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Background[EXGANTTLib_TLB.exHeaderFilterBarButton] := $1000000; (IUnknown(Columns.Add('Filter')) as EXGANTTLib_TLB.Column).DisplayFilterButton := True; end |
165 |
Is there any function to get the control's data in your x-script format / template
|
164 |
How do I enable resizing the columns at runtime
with Gantt1 do begin ColumnsAllowSizing := True; MarkSearchColumn := False; HeaderVisible := False; Columns.Add('Column 1'); Columns.Add('Column 2'); DrawGridLines := EXGANTTLib_TLB.exVLines; with Items do begin CellCaption[OleVariant(AddItem('Item 1')),OleVariant(1)] := 'Sub Item 1'; end; with Items do begin CellCaption[OleVariant(AddItem('Item 2')),OleVariant(1)] := 'Sub Item 2'; end; end |
163 |
How can I select the second inner column when spliting the cells
with Gantt1 do begin SelectColumnInner := 1; FullRowSelect := False; DrawGridLines := EXGANTTLib_TLB.exAllLines; Columns.Add('Column'); with Items do begin CellCaption[Null,SplitCell[OleVariant(AddItem('Split Cell 1.1')),OleVariant(0)]] := 'Split Cell 2.1'; CellCaption[Null,SplitCell[OleVariant(AddItem('Split Cell 1.2')),OleVariant(0)]] := 'Split Cell 2.2'; SelectItem[FirstVisibleItem] := True; end; end |
162 |
How can I sort by multiple columns
with Gantt1 do begin SingleSort := False; (IUnknown(Columns.Add('C1')) as EXGANTTLib_TLB.Column).SortOrder := EXGANTTLib_TLB.SortAscending; (IUnknown(Columns.Add('C2')) as EXGANTTLib_TLB.Column).SortOrder := EXGANTTLib_TLB.SortDescending; (IUnknown(Columns.Add('C3')) as EXGANTTLib_TLB.Column).SortOrder := EXGANTTLib_TLB.SortAscending; end |
161 |
How can I add several columns to control's sort bar
with Gantt1 do begin SortBarVisible := True; SortBarColumnWidth := 48; (IUnknown(Columns.Add('C1')) as EXGANTTLib_TLB.Column).SortOrder := EXGANTTLib_TLB.SortAscending; (IUnknown(Columns.Add('C2')) as EXGANTTLib_TLB.Column).SortOrder := EXGANTTLib_TLB.SortDescending; end |
160 |
How can I change the width of the columns being displayed in the sort bar
with Gantt1 do begin SortBarVisible := True; SortBarColumnWidth := 48; (IUnknown(Columns.Add('C1')) as EXGANTTLib_TLB.Column).SortOrder := EXGANTTLib_TLB.SortAscending; (IUnknown(Columns.Add('C2')) as EXGANTTLib_TLB.Column).SortOrder := EXGANTTLib_TLB.SortDescending; end |
159 |
How can I change the height of the sort bar's
with Gantt1 do begin SortBarVisible := True; SortBarHeight := 48; end |
158 |
How can I change the sort bar's foreground color
with Gantt1 do begin SortBarVisible := True; ForeColorSortBar := RGB(255,0,0); end |
157 |
How can I change the visual appearance of the control's sort bar, using EBN files
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn'); SortBarVisible := True; BackColorSortBar := $1000000; BackColorSortBarCaption := $2000000; Appearance := EXGANTTLib_TLB.None2; end |
156 |
How can I change the sort bar's background color
with Gantt1 do begin SortBarVisible := True; BackColorSortBar := RGB(255,0,0); BackColorSortBarCaption := RGB(128,0,0); end |
155 |
How can I change the default caption being displayed in the control's sort bar
with Gantt1 do begin SortBarVisible := True; SortBarCaption := 'new caption'; end |
154 |
How can I show the locked / fixed items on the bottom side of the control
with Gantt1 do begin ShowLockedItems := True; Columns.Add('Column'); with Items do begin LockedItemCount[EXGANTTLib_TLB.MiddleAlignment] := 2; CellCaption[OleVariant(LockedItem[EXGANTTLib_TLB.MiddleAlignment,0]),OleVariant(0)] := 'locked item 1'; CellCaption[OleVariant(LockedItem[EXGANTTLib_TLB.MiddleAlignment,1]),OleVariant(0)] := 'locked item 2'; AddItem('un-locked item'); end; end |
153 |
How can I show the locked / fixed items
with Gantt1 do begin ShowLockedItems := True; Columns.Add('Column'); with Items do begin LockedItemCount[EXGANTTLib_TLB.TopAlignment] := 2; CellCaption[OleVariant(LockedItem[EXGANTTLib_TLB.TopAlignment,0]),OleVariant(0)] := 'locked item 1'; CellCaption[OleVariant(LockedItem[EXGANTTLib_TLB.TopAlignment,1]),OleVariant(0)] := 'locked item 2'; AddItem('un-locked item'); end; end |
152 |
How can I hide the locked / fixed items
with Gantt1 do begin ShowLockedItems := False; Columns.Add('Column'); with Items do begin LockedItemCount[EXGANTTLib_TLB.TopAlignment] := 1; CellCaption[OleVariant(LockedItem[EXGANTTLib_TLB.TopAlignment,0]),OleVariant(0)] := 'locked item'; AddItem('un-locked item'); end; end |
151 |
How can I show the control's sort bar
with Gantt1 do begin SortBarVisible := True; end |
150 |
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
with Gantt1 do begin PictureLevelHeader := Gantt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\colorize.gif`)'); PictureDisplayLevelHeader := EXGANTTLib_TLB.Stretch; (IUnknown(Columns.Add('S')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('E1')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E2')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E3')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('E4')) as EXGANTTLib_TLB.Column).Width := 32; end |
149 |
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
with Gantt1 do begin PictureLevelHeader := Gantt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\colorize.gif`)'); PictureDisplayLevelHeader := EXGANTTLib_TLB.MiddleRight; (IUnknown(Columns.Add('S')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('E')) as EXGANTTLib_TLB.Column).Width := 32; end |
148 |
How can I display a picture on the control's header, when multiple levels are displayed
with Gantt1 do begin PictureLevelHeader := Gantt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)'); (IUnknown(Columns.Add('S')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); end |
147 |
How can I change the header's background color, when multiple levels are displayed
with Gantt1 do begin BackColorLevelHeader := RGB(250,0,0); (IUnknown(Columns.Add('S')) as EXGANTTLib_TLB.Column).Width := 32; (IUnknown(Columns.Add('Level 1')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 2')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); (IUnknown(Columns.Add('Level 3')) as EXGANTTLib_TLB.Column).LevelKey := OleVariant(1); end |
146 |
Can I programmatically scroll the control
with Gantt1 do begin Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(3)); PutItems(GetItems(OleVariant(0)),Null); PutItems(GetItems(OleVariant(0)),Null); ScrollPos[True] := 1; end |
145 |
How do I disable expanding or collapsing an item when user presses the arrow keys
with Gantt1 do begin ExpandOnKeys := False; LinesAtRoot := EXGANTTLib_TLB.exLinesAtRoot; Columns.Add('Column 1'); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); ExpandItem[h] := True; end; end |
144 |
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
with Gantt1 do begin ExpandOnSearch := True; LinesAtRoot := EXGANTTLib_TLB.exLinesAtRoot; AutoSearch := True; (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column).AutoSearch := EXGANTTLib_TLB.exContains; with Items do begin InsertItem(InsertItem(AddItem('text'),Null,'some text'),Null,'another text'); InsertItem(InsertItem(AddItem('text'),Null,'some text'),Null,'another text'); end; end |
143 |
Can I programmatically scroll the control
with Gantt1 do begin Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); Items.AddItem(OleVariant(3)); PutItems(GetItems(OleVariant(0)),Null); PutItems(GetItems(OleVariant(0)),Null); Scroll(EXGANTTLib_TLB.exScrollDown,Null); end |
142 |
Do you have some function to load data from a safe array
with Gantt1 do begin Columns.Add('Column'); Items.AddItem(OleVariant(0)); PutItems(GetItems(OleVariant(0)),Null); end |
141 |
Do you have some function to retrieve all items to a safe array
with Gantt1 do begin Columns.Add('Column'); Items.AddItem(OleVariant(0)); PutItems(GetItems(OleVariant(0)),Null); Items.AddItem(OleVariant(1)); PutItems(GetItems(OleVariant(0)),Null); Items.AddItem(OleVariant(2)); PutItems(GetItems(OleVariant(0)),Null); Items.AddItem(OleVariant(3)); end |
140 |
How can still display the selected items when the control loses the focus
with Gantt1 do begin HideSelection := False; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); SelectItem[AddItem('Item 2')] := True; end; end |
139 |
How can I hide a column
with Gantt1 do begin (IUnknown(Columns.Add('Hidden')) as EXGANTTLib_TLB.Column).Visible := False; Columns.Add('2'); Columns.Add('3'); Columns.Add('4'); Columns.Add('5'); end |
138 |
How can I ensure that a column is visible and fits the control's client area
with Gantt1 do begin ColumnAutoResize := False; (IUnknown(Columns.Add('1')) as EXGANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('2')) as EXGANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('3')) as EXGANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('4')) as EXGANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('5')) as EXGANTTLib_TLB.Column).Width := 128; EnsureVisibleColumn('5'); end |
137 |
I've seen that the width of the tooltip is variable. Can I make it larger
with Gantt1 do begin ToolTipWidth := 328; (IUnknown(Columns.Add('tootip')) as EXGANTTLib_TLB.Column).ToolTip := 'this is a tooltip that should be very very very very very very very long'; end |
136 |
How do I disable showing the tooltip for all control
with Gantt1 do begin ToolTipDelay := 0; (IUnknown(Columns.Add('tootip')) as EXGANTTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
135 |
How do I let the tooltip being displayed longer
with Gantt1 do begin ToolTipPopDelay := 10000; (IUnknown(Columns.Add('tootip')) as EXGANTTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
134 |
How do I show the tooltip quicker
with Gantt1 do begin ToolTipDelay := 1; (IUnknown(Columns.Add('tootip')) as EXGANTTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
133 |
How do I change the caption being displayed in the control's filter bar
with Gantt1 do begin FilterBarCaption := 'your filter caption'; with (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXGANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
132 |
How do I disable expanding or collapsing an item when user double clicks it
with Gantt1 do begin ExpandOnDblClick := False; LinesAtRoot := EXGANTTLib_TLB.exLinesAtRoot; Indent := 13; Columns.Add('Column 1'); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); ExpandItem[h] := True; end; end |
131 |
How do I search case sensitive, using your incremental search feature
with Gantt1 do begin AutoSearch := True; ASCIILower := ''; with Columns do begin (IUnknown(Add('exStartWith')) as EXGANTTLib_TLB.Column).AutoSearch := EXGANTTLib_TLB.exStartWith; (IUnknown(Add('exContains')) as EXGANTTLib_TLB.Column).AutoSearch := EXGANTTLib_TLB.exContains; end; with Items do begin CellCaption[OleVariant(AddItem('text')),OleVariant(1)] := 'another text'; end; with Items do begin CellCaption[OleVariant(AddItem('text')),OleVariant(1)] := 'another text'; end; end |
130 |
How do I disable the control
with Gantt1 do begin Enabled := False; end |
129 |
How do I enable the incremental search feature within a column
with Gantt1 do begin AutoSearch := True; with Columns do begin (IUnknown(Add('exStartWith')) as EXGANTTLib_TLB.Column).AutoSearch := EXGANTTLib_TLB.exStartWith; (IUnknown(Add('exContains')) as EXGANTTLib_TLB.Column).AutoSearch := EXGANTTLib_TLB.exContains; end; with Items do begin CellCaption[OleVariant(AddItem('text')),OleVariant(1)] := 'another text'; end; with Items do begin CellCaption[OleVariant(AddItem('text')),OleVariant(1)] := 'another text'; end; end |
128 |
How do I call your x-script language
with Gantt1 do begin with (IUnknown(ExecuteTemplate('Columns.Add(`Column`)')) as EXGANTTLib_TLB.Column) do begin HeaderStrikeOut := True; HeaderBold := True; end; end |
127 |
How do I call your x-script language
|
126 |
How do I show alternate rows in different background color
with Gantt1 do begin BackColorAlternate := RGB(240,240,240); Columns.Add('Column'); with Items do begin AddItem('Item 1'); AddItem('Item 2'); AddItem('Item 3'); AddItem('Item 4'); AddItem('Item 5'); end; end |
125 |
How do I enlarge the drop down filter window
with Gantt1 do begin FilterBarDropDownHeight := '-320'; with (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterBarDropDownWidth := '-320'; end; Items.AddItem('Item 1'); Items.AddItem('Item 2'); end |
124 |
How do I filter programatically the control
with Gantt1 do begin with (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXGANTTLib_TLB.exPattern; Filter := 'Item*'; end; Items.AddItem('Item 1'); Items.AddItem(''); Items.AddItem('Item 2'); ApplyFilter(); end |
123 |
How do I change the font of the control's filterbar
with Gantt1 do begin FilterBarFont.Size := 20; with (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXGANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
122 |
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); FilterBarBackColor := $1000000; with (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXGANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
121 |
How do I change the background color of the control's filterbar
with Gantt1 do begin FilterBarBackColor := RGB(240,240,240); with (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXGANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
120 |
How do I change the foreground color of the control's filterbar
with Gantt1 do begin FilterBarForeColor := RGB(255,0,0); with (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXGANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
119 |
How do I change the height of the control's filterbar
with Gantt1 do begin FilterBarHeight := 32; with (IUnknown(Columns.Add('Column')) as EXGANTTLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXGANTTLib_TLB.exBlanks; end; ApplyFilter(); end |
118 |
How do select only a portion of text when the control starts editing a cell
with Gantt1 do begin AllowEdit := True; SelStart := 1; SelLength := 1; Columns.Add('Column'); Items.AddItem('Item 1'); Items.AddItem('Item 2'); end |
117 |
How do I change the header's foreground color
with Gantt1 do begin ForeColorHeader := RGB(255,0,0); Columns.Add('Column 1'); Columns.Add('Column 2'); Items.AddItem('Item 1'); end |
116 |
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
with Gantt1 do begin Picture := Gantt1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)'); SelBackMode := EXGANTTLib_TLB.exTransparent; Columns.Add('Column'); Items.AddItem('Item 1'); Items.AddItem('Item 2'); end |
115 |
It seems that the control uses the TAB key, is there any way to avoid that
with Gantt1 do begin UseTabKey := False; end |
114 |
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
with Gantt1 do begin SelectColumnIndex := 1; FullRowSelect := False; SelectColumn := True; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin CellCaption[OleVariant(AddItem('Item 1')),OleVariant(1)] := 'SubItem 1'; end; end |
113 |
How do I assign a database to your control, using ADO, ADOR or ADODB objects
with Gantt1 do begin ColumnAutoResize := False; ContinueColumnScroll := False; rs := (IUnknown(ComObj.CreateComObject(ComObj.ProgIDToClassID('ADOR.Recordset'))) as ADODB_TLB.Recordset); with rs do begin Open('Orders','Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\SAMPLE.MDB',3,3,Null); end; DataSource := (IUnknown(rs) as ADODB_TLB.Recordset); end |
112 |
How do I change the visual appearance effect for the selected item, using EBN
with Gantt1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); SelBackColor := $1000000; SelForeColor := RGB(0,0,0); ShowFocusRect := False; Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); end |
111 |
How do I change the colors for the selected item
with Gantt1 do begin SelBackColor := RGB(0,0,0); Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); end |
110 |
How do I get ride of the rectangle arround focused item
with Gantt1 do begin ShowFocusRect := False; Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); end |
109 |
How can I change the control's font
|
108 |
I can't scroll to the end of the data. What can I do
with Gantt1 do begin ScrollBySingleLine := True; DrawGridLines := EXGANTTLib_TLB.exRowLines; Columns.Add('Column'); with Items do begin ItemHeight[AddItem(OleVariant(0))] := 13; end; PutItems(GetItems(OleVariant(0)),Null); with Items do begin ItemHeight[AddItem(OleVariant(1))] := 26; end; PutItems(GetItems(OleVariant(0)),Null); with Items do begin ItemHeight[AddItem(OleVariant(2))] := 36; end; PutItems(GetItems(OleVariant(0)),Null); with Items do begin ItemHeight[AddItem(OleVariant(3))] := 48; end; PutItems(GetItems(OleVariant(0)),Null); end |
107 |
How do I specify the column where the tree lines / hierarchy are shown
with Gantt1 do begin LinesAtRoot := EXGANTTLib_TLB.exGroupLinesAtRoot; TreeColumnIndex := 1; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin h := AddItem('Root 1.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2'; ExpandItem[h] := True; h := AddItem('Root 2.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; end; end |
106 |
How do I specify the indentation of the child items relative to their parents
with Gantt1 do begin LinesAtRoot := EXGANTTLib_TLB.exGroupLinesAtRoot; Indent := 11; Columns.Add('Column'); with Items do begin h := AddItem('Root 1'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); ExpandItem[h] := True; h := AddItem('Root 2'); InsertItem(h,Null,'Child'); end; end |
105 |
Is there any option to select an item using the right button of the mouse (rclick)
with Gantt1 do begin RClickSelect := True; Columns.Add('Column'); Items.AddItem('Item 1'); Items.AddItem('Item 2'); end |
104 |
How do I edit a cell
with Gantt1 do begin AllowEdit := True; Columns.Add('Column'); Items.AddItem('Item 1'); Items.AddItem('Item 2'); end |
103 |
I have FullRowSelect property on False, how do I select a column
with Gantt1 do begin SelectColumnIndex := 1; FullRowSelect := False; end |
102 |
How can I scroll columns one by one, not pixel by pixel
with Gantt1 do begin ContinueColumnScroll := False; ColumnAutoResize := False; (IUnknown(Columns.Add('1')) as EXGANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('2')) as EXGANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('3')) as EXGANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('4')) as EXGANTTLib_TLB.Column).Width := 128; (IUnknown(Columns.Add('5')) as EXGANTTLib_TLB.Column).Width := 128; end |
101 |
How can I enable multiple items selection
with Gantt1 do begin SingleSel := False; Columns.Add('Column'); Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); end |